﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace org
{
    static class ExtensionMethods
    {
        public static string Substring(this StringBuilder sb, int idx)
        {
            return sb.ToString().Substring(idx);
        }
        public static int IndexOf(this StringBuilder sb, string str)
        {
            return sb.ToString().IndexOf(str);
        }
        public static bool equalsIgnoreCase(this string me,string other) {
            return StringComparer.CurrentCultureIgnoreCase.Compare(me, other) == 0;
        }

        public static void printStackTrace(this Exception exp) {
            Console.WriteLine(exp.StackTrace);
        }
    }
}
